package com.suneee.logistic.dao;

import java.util.List;

import com.suneee.context.page.Page;
import com.suneee.logistic.entity.EnterpriseLogistics;
import com.suneee.logistic.entity.LogisticsDto;
import com.suneee.orm.Dao;

public interface EnterpriseLogisticDao extends Dao<EnterpriseLogistics, Integer> {

	/**
	 * 是否默认(YES)
	 */
	public void isDefault(boolean isDefault, int configId);

	/**
	 * 查询所有企业物流公司分类
	 * 
	 * @return
	 */
	public List<EnterpriseLogistics> listLogistic(String enterpriseCode);

	/**
	 * 判断物流公司名称是否唯一
	 * 
	 * @param companyName
	 * @return
	 */
	public boolean existsCompanyCode(String companyCode, String enterpriseCode);

	/**
	 * 获取企业默认物流公司
	 * 
	 * @param companyCode
	 * @return
	 */
	public EnterpriseLogistics getDefaultLogistics(String companyCode);

	public Page<EnterpriseLogistics> pageEnLogistics(LogisticsDto dto);

	/**
	 * 根据物流名称和企业编码查询物流信息
	 * @param companyName
	 * @param enterpriseCode
	 * @return
	 */
	public EnterpriseLogistics getEnterpriseLogistics(String companyName, String enterpriseCode);

}
